
body{
    width: 100%;
    min-width: 320px;
    max-width: 540px;
    margin: 0 auto;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    font-family: -apple-system, Helvetica, sans-serif;
    background-color: #f6f6f6;
    height: 2000px;
}
div{
    box-sizing: border-box;
}
a{
    /* 清除点击高亮效果 */
    -webkit-tap-highlight-color: transparent;
    color: #222;
    text-decoration: none;
    /* font-size: 12px; */
}
ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
input{
    /* 加上这个属性才可以给按钮和输入框自定义样式 */
    -webkit-appearance: none;
}
img,a{
    /* 禁用长按页面时弹出菜单 */
    -webkit-touch-callout: none;
}
/* 搜索 */
.search-index {
    position: fixed;
    min-width: 320px;
    max-width: 540px;
    left: 50%;
    top: 0;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 100%;
    height: 44px;
    background-color: #f6f6f6;
    display: flex;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}
.search{
    flex: 1;
    height: 28px;
    border: 1px solid #ccc;
    margin: 7px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    
}
.search span{
    display: inline-block;
    vertical-align: top;
    margin-top: 3px;
 
}
.search::before{
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background: url(../images/tabbar.png) no-repeat -4px -28px ;
    background-size: 24px;
   /* text-align: center; */
   margin: 5px;
   
   
}
.user{
    width: 44px;
    height: 44px;
    /* background-color: pink; */
   text-align: center;
    /*  line-height: 44px; */
    font-size: 10px;
}
.user::before{
    content: '';
    display: block;
    width: 23px;
    height: 23px;
    background: url(../images/tabbar.png) no-repeat 0px -70px ;
    background-size: 24px;
   /* text-align: center; */
   margin: 2px auto;
}
/* banner */
.focus{
    margin-top: 44px;
}
.focus img{
    width: 100%;
}
/* 局部导航栏 */
.local-nav{
    display: flex;
    height: 64px;
    background-color: #fff;
    border-radius: 8px;
    margin: 3px 4px;
   
}
.local-nav li{
    flex: 1;
}
.local-nav a{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
}
.local-nav li [class^="local-nav-ic"]{
    width: 32px;
    height: 32px;
    background-color: #fff;
    margin-top: 8px;
    background: url(../images/nav.png) no-repeat -1px -2px;
    background-size: 36px auto;
}
.local-nav li:nth-child(2) .local-nav-icon{
    background: url(../images/nav.png) no-repeat -4px -72px;
    background-size: 36px;
}
.local-nav li:nth-child(3) .local-nav-icon{
    background: url(../images/nav.png) no-repeat -4px -143px;
    background-size: 36px;
}
.local-nav li:nth-child(5) .local-nav-icon{
    background: url(../images/nav.png) no-repeat -4px -250px;
    background-size: 36px;
}
/* 主导航栏 */
nav{
    overflow: hidden;
    border-radius: 8px;
    margin: 0 4px 3px;
    background-color: #fff;

}
.nav-common{
    display: flex;
    height: 88px;
    /* background-color: pink; */
}
nav>:nth-child(1){
    /* 背景渐变必须添加浏览器前缀 */
    background:-webkit-linear-gradient(bottom left,#fa5a55,#fa994d);
}
nav>:nth-child(2){
    /* 背景渐变必须添加浏览器前缀 */
    background:-webkit-linear-gradient(bottom left,#4b90ed,#53bced);
}
nav>:nth-child(3){
    /* 背景渐变必须添加浏览器前缀 */
    background:-webkit-linear-gradient(bottom left,#34c2a9,#6cd559);
}
.nav-common:nth-child(2){
    margin: 3px 0;
}
.nav-items{
    flex: 1;
    display: flex;
    flex-direction: column;
}
.nav-items a{
    flex: 1;
    color: #fff;
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    line-height: 44px;
    font-size: 14px;
    text-align: center;
    text-shadow: 1px 1px rgba(0, 0, 0, .3);
}

.nav-items a:nth-child(2){
    border-top: 1px solid #fff;
}
